// ex4_10.cpp
#include <iostream>
#include <array>

int main(void)
{
    using namespace std;
    array<double, 3> run_score;
    double average1 {0.0};
    /* run_grade[0] = 90.0;
    run_grade[1] = 90.0;
    run_grade[2] = 90.0;

    average1 = (run_grade[0] + run_grade[1] + run_grade[2]) / 3; 
    */
    cout << "Enter 3 score of John: \n";
    cout << "fisrt grade: ";
    cin >> run_score[0];
    cout << "second grade: ";
    cin >> run_score[1];
    cout << "third grade: ";
    cin >> run_score[2];
    average1 = (run_score[0] + run_score[1] + run_score[2]) / 3; 
    cout << "average is : " << average1 << endl;
}